<?php
if (!defined('WP_PLUGIN_URL')) {
	require_once (realpath('../../../../') . '/wp-config.php');
}
header('Content-type: text/javascript');

if (!$wp_query instanceof WP_Query) {
	$wp_query = new WP_Query();
}

$arg = array('tax_query'=> array(
	            'taxonomy'  => 'post_format',
	            'field'     => 'slug',
	            'terms'     => 'media', // exclude media posts in the news-cat custom taxonomy
	            'operator'  => 'NOT IN'
			)
       );

$res = get_categories();
$key['keyword'] = "PHP";
$key['icon']    = plugins_url("images/R_log.png",__DIR__);
$max = 0;
foreach ($res as $v) {
	if ($v->count > $max) {
		$max = $v->count;
		$key['keyword'] = $v->name;
	}
}

$js = file_get_contents("a.js");
echo RakutenWidget::parse($js, $key);
?>
